package com.itany.pojo;


import java.io.Serializable;

public class User implements Serializable{

    private Integer id;

    private String username;

    private String phone;

    private String email;

    private String interest;

    private String password;

    private Integer flag;

    public User() {
    }

    public User(String username, String phone, String email, String interest, String password, Integer flag) {
        this.username = username;
        this.phone = phone;
        this.email = email;
        this.interest = interest;
        this.password = password;
        this.flag = flag;
    }

    public User(Integer id, String username, String phone, String email, String interest, String password, Integer flag) {
        this.id = id;
        this.username = username;
        this.phone = phone;
        this.email = email;
        this.interest = interest;
        this.password = password;
        this.flag = flag;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", interest='" + interest + '\'' +
                ", password='" + password + '\'' +
                ", flag=" + flag +
                '}';
    }
}
